@extends('layout.template')

@section('title')
	{{ $title }}
@stop

@section('content')

<p class='phubk'>
	Page: {{ $page }} | Limit: {{ $current }} | Count: {{ $count }} | Page Count: {{ $pageCount }}
</p>

<table class="table table-striped table-condensed table table-hover">
	<tr>		
		<th>Time</th>
		<th>Offer_ID</th>
		<th>Country</th>
		<th>Browser</th>	
		<th>Brand</th>	
		<th>Model</th>	
		<th>OS</th>	
		<th>Ver</th>
		<th>Session IP</th>		
		<th>Agent</th>	
		<th>Reff</th>	
	</tr>
	@for($i = 0; $i < $count; $i++)
	<tr>
		<td> {{ $result[$i]['hasoffers_datetime'] }}</td>
		<td class='ph'> {{ $result[$i]['hasoffers_offer_id'] }}</td>
		<td> {{ $result[$i]['hasoffers_name'] }}</td>
		<td> {{ $result[$i]['hasoffers_browser'] }}</td>
		<td> {{ $result[$i]['hasoffers_device_brand'] }}</td>
		<td> {{ substr($result[$i]['hasoffers_device_model'], 0, 10) }}</td>
		<td> {{ $result[$i]['hasoffers_device_os'] }}</td>
		<td> {{ $result[$i]['hasoffers_device_os_version'] }}</td>
		<td> {{ $result[$i]['hasoffers_session_ip'] }}</td>		
		<td class='ph'> <a href="#" onClick="alert('{{ $result[$i]['hasoffers_user_agent'] }}')"><i class="fa fa-search"></i></a></td>
		<td>  {{ $result[$i]['hasoffers_refer'] }}</td>
	</tr>
	@endfor
</table>
<style type="text/css">
	.ph{
		text-align: center;		
	}
	.phubk{
		color: #34495e;		
		font-size: 15px;
	}
</style>

@stop